package driver;

import Stack.BasicOperand;
import implementation.Parser;
import implementation.RPN;

public class Driver {
	public static void main(final String[] args) {
		//final String[] input = "( 1 + 2 ) * ( 3 / 4 ) ^ ( 5 + 6 )".split(" ");
		final String[] input = "( 1 + 2 ) > ( 8 / 4 )".split(" ");

		final BasicOperand[] output = Stack.Parser.infixToRPN(input);
		for (final BasicOperand token : output) {
			System.out.print(token + " ");
		}
		final BasicOperand answer = Stack.RPN.evalRPN(output);
		System.out.println("Answer: " + answer);
	}
}